import POJO.MoviePerformer;
import dao.MoviePerformerDAO;
import dao.MoviePerformerDAOImpl;

/**
 * @auther 尚智江
 * @Date 2022/5/6 0:09
 */
public class UpdateTest {
    public static void main(String[] args) {
        MoviePerformerDAO moviePerformerDAO = new MoviePerformerDAOImpl();
        MoviePerformer moviePerformer = new MoviePerformer();
        moviePerformer.setId(2);
        moviePerformer.setMovieTitle("zhizhuxia");
        moviePerformer.setName("jjj");
        moviePerformer.setRepresentive("哈哈哈");
        int b = moviePerformerDAO.update(moviePerformer);
        System.out.println(b);
    }
}
